import type { goodsType, pageType } from "./model/Goods";

import request from "../utils/requset";

export const getCategory = () => {
  return request.post<any, any>("/product/getCategory", {});
};
export const getAllProduct = (data: pageType) => {
  return request.post<any, any>("/product/getAllProduct", data);
};
export const getProductByCategory = (data: pageType) => {
  return request.post<any, any>("/product/getProductByCategory", data);
};
